<!DOCTYPE HTML>
<html>
<head>
    <meta charset="UTF-8">
    <title>GalgameOL - Demo</title>
    <style type="text/css">
        .main {
            width: 800px;
            height: 600px;
            margin: 0 auto;
            position: relative;
            background-image: url("./image/loading.jpg");
        }
        .game {
            width: 100%;
            height: 100%;
            position: absolute;
        }
        #ld {
            text-align: center;
        }
        #ld_left {
            height: 100%;
            position: absolute;
            left: 0;
        }
        #ld_center {
            height: 100%;
            left: 50%;
            transform: translate(-50%);
            position: absolute;
        }
        #ld_right {
            height: 100%;
            position: absolute;
            right: 0;
        }
        .bg {
            height: 100%;
            width: 100%; 
        }
        #dialog {
            width: 100%;
            height: 25%;
            bottom: 0;
            background-color: #97FFFF;
            border-radius: 15px;
        }
        .text {
            margin: 5px auto ;
            height: 90%;
            width: 95%;
            font-size: 2.5em;
        }
        #music {
            display: none;
            height: 0;
            width: 0;
        }
    </style>
    <script src="./js/jquery.min.js"></script>
    <script src="./js/preloadjs.min.js"></script>
</head>
<body>
    <div class="main">
        <div class="game" id="background">
            <img class="bg" />
        </div>
        <div class="game" id="ld">
            <img class="ld" id="ld_left" />
            <img class="ld" id="ld_center" />
            <img class="ld" id="ld_right" />
        </div>
        <div class="game" id="dialog">
            <pre class="text"></pre>
        </div>
        <div class="game" id="music">
            <!--音乐控件区域-->
            <audio class="bgm" loop="loop" autoplay="autoplay"></audio>
        </div>
    </div>
    <script src="./js/main.js"></script>
</body>
</html>